﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SmartHotel.Model
{
    /// <summary>
    /// 会员model
    /// </summary>
    [Table("User")]//表名以这个名称为主
    public class Member
    {
        [Key]
        public int Id{ get; set; }
        /// <summary>
        /// 用户名
        /// </summary>
        public string Name {  get; set; }
        /// <summary>
        /// 级别
        /// </summary>
        public int Level {  get; set; }
        /// <summary>
        /// 密码
        /// </summary>
        public  string Pwd {  get; set; }
        /// <summary>
        /// 邮箱
        /// </summary>
        public string Email {  get; set; }
        /// <summary>
        /// 手机号
        /// </summary>
        public string Phone { get; set; }
        /// <summary>
        /// 积分值
        /// </summary>
        public int JifenVal {  get; set; }
    }
}
